import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router);

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      redirect: '/homePage'
    },
    {
      path: '/',
      component: resolve => require(['../components/common/Home.vue'], resolve),
      meta: {title: '包裹文件'},
      children: [
        {
          path: '/homePage',
          component: resolve => require(['../components/page/homePage.vue'], resolve),
          meta: {title: '首页'}
        },
        {
          path: '/hospital',
          component: resolve => require(['../components/page/hospital.vue'], resolve),
          meta: {title: '主数据 => 医院',}
        },
        {
          path: '/hospitalDimension',
          component: resolve => require(['../components/page/hospitalDimension.vue'], resolve),
          meta: {title: '主数据 => 医院维度',}
        },
        {
          path: '/doctor',
          component: resolve => require(['../components/page/doctor.vue'], resolve),
          meta: {title: '主数据 => 医生',}
        },
        {
          path: '/doctorDimension',
          component: resolve => require(['../components/page/doctorDimension.vue'], resolve),
          meta: {title: '主数据 => 医生维度',}
        },
        {
          path: '/rocheGroupTAE',
          component: resolve => require(['../components/page/rocheGroupTAE.vue'], resolve),
          meta: {title: '项目数据 => 罗氏TAE',}
        },
        {
          path: '/anaplerosis',
          component: resolve => require(['../components/page/anaplerosis.vue'], resolve),
          meta: {title: '项目数据 => 回补',}
        },
        {
          path: '/identityOfNamedEntity',
          component: resolve => require(['../components/page/identityOfNamedEntity.vue'], resolve),
          meta: {title: 'NLP => 医生命名实体识别',}
        },
        {
          path: '/paper',
          component: resolve => require(['../components/page/paper.vue'], resolve),
          meta: {title: '论文 => 同步ID',}
        },
      ],
    },
    {
      path: '/login',
      component: resolve => require(['../components/page/login.vue'], resolve)
    },
    {
      path: '/search',
      component: resolve => require(['../components/search/search.vue'], resolve),
      meta: {title: '搜索引擎',}
    },
  ]
})
